#include <iostream>
#include <sstream>
using namespace std;
int myAtoi(string str)
{
    while (*str.begin() == ' ')
        str.erase(str.begin());
    if (str == "")
        return 0;
    cout<<str<<endl;
    stringstream ss;
    ss << str;
    int n;
    ss >> n;
    return n;
}
int main()
{
    cout<<myAtoi("-91283472332");
    return 0;
}